import request from '@/utils/request'
// 查询自助机设备
export function getKioskList(params) {
  return request({
    url: '/manage/Man/selDevice',
    method: 'POST',
    data: params
  })
}
// 查询单台自助机设备的统计数据
export function getKioskInfo(params) {
  return request({
    url: '/manage/Data/devDataStatistics',
    method: 'POST',
    data: params
  })
}
// 添加自助机设备
export function insertKiosk(params) {
  return request({
    url: '/manage/Man/addDevice',
    method: 'POST',
    data: params
  })
}
// 修改自助机设备
export function updateKiosk(params) {
  return request({
    url: '/manage/Man/updDevice',
    method: 'POST',
    data: params
  })
}
// 删除自助机设备
export function deleteKiosk(params) {
  return request({
    url: '/manage/Man/delDevice',
    method: 'POST',
    data: params
  })
}

// 获取自助机中自助机位置（不带分页）
export function devPositionCondition(params) {
  return request({
    url: '/manage/Man/devPositionCondition',
    method: 'POST',
    data: params
  })
}
// 添加自助机设备中自动生成编号
export function generateCode(params) {
  return request({
    url: '/manage/Man/genNumber',
    method: 'POST',
    data: params
  })
}

// 添加自助机设备中获取自助机类型(不带分页)
export function devTypeCondition(params) {
  return request({
    url: '/manage/Man/devTypeCondition',
    method: 'POST',
    data: params
  })
}

// 查询自助机状态
export function getKioskStatusList(params) {
  return request({
    url: '/manage/Man/selDevState',
    method: 'POST',
    data: params
  })
}

// 获取指令
export function getKioskCommands(params) {
  return request({
    url: '/manage/Man/selCommand',
    method: 'POST',
    data: params
  })
}
// 下发指令
export function postKioskCommand(params) {
  return request({
    url: '/manage/Man/issuedInstructions',
    method: 'POST',
    data: params
  })
}

// 配置中功能模块
export function getFuncList(params) {
  return request({
    url: '/manage/index/selModule',
    method: 'POST',
    data: params
  })
}

// 配置中功能模块
export function deviceWarningRecord(params) {
  return request({
    url: '/manage/Man/deviceWarningRecord',
    method: 'POST',
    data: params
  })
}

